package com.ceba.test.webservice.entity;

/**
 * 从windows的证书管理器中获取私钥的相关配置
 * @author leeguang
 */
public class PrivateKeyConfWindowsMy extends PrivateKeyConfAbstract {
    /**
     * 证书的cn名字
     */
    private String cnName;

    public PrivateKeyConfWindowsMy() {
        super();
    }

    public PrivateKeyConfWindowsMy(String cnName) {
        super();
        this.cnName = cnName;
    }

    public PrivateKeyConfWindowsMy(String cnName, String sigAlg, String publicKeyAlg) {
        super(sigAlg, publicKeyAlg);
        this.cnName = cnName;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    @Override
    public PrivateKeyType getPkType() {
        return PrivateKeyType.PK_WINDOWS_MY;
    }
}
